package dj.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * FriendExtend entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "friend_extend", catalog = "")
public class FriendExtend implements java.io.Serializable {

	// Fields

	private String id;
	private Friend friend;
	private String remark;
	private String remarkName;

	// Constructors

	/** default constructor */
	public FriendExtend() {
	}

	/** minimal constructor */
	public FriendExtend(String id, Friend friend) {
		this.id = id;
		this.friend = friend;
	}

	/** full constructor */
	public FriendExtend(String id, Friend friend, String remark, String remarkName) {
		this.id = id;
		this.friend = friend;
		this.remark = remark;
		this.remarkName = remarkName;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "friendid", nullable = false)
	public Friend getFriend() {
		return this.friend;
	}

	public void setFriend(Friend friend) {
		this.friend = friend;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "remarkName", length = 50)
	public String getRemarkName() {
		return this.remarkName;
	}

	public void setRemarkName(String remarkName) {
		this.remarkName = remarkName;
	}

}